{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
	<div class="content-tabs">
		<ol class="breadcrumb">
			<li>
				<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
			</li>
			<li><strong>交易记录</strong></li>
		</ol>
	</div>

	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('search')}">
			<div class="row">
				&nbsp;&nbsp;&nbsp;
				<span class="bspan">用户类型</span>
				<select name="user_type" class="bank">
					<option value="0">请选择用户类型</option>
					<option value="1">会员</option>
					<option value="2">商户</option>
				</select>
				<span class="bspan">商户名</span><input type="text" name="name" placeholder="请输入关键词" class="bank"> <span>
                                    <span class="bspan">添加时间</span> <input type="text" id='add_time' name='add_time' onclick='WdatePicker()' placeholder="开始时间" class="bank" />
				<input id='end_time' name='end_time' onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />

				<span style="border-radius:0px;border:1px;"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>

			</div>
		</form>
		<div class="example-wrap">
			<div class="example">
				<table class="table table-bordered table-hover">
					<thead>
						<tr class="long-tr text-center">
							<th>会员名/商户名</th>
							<th>用户类型</th>
							<th>操作类型</th>
							<th>变化金额</th>
							<th>时间</th>
						</tr>
					</thead>
					<tbody id="list" class=" text-center">
						{volist name="list" id='ad'}
						<tr>
							<td>{$ad.nick_name}</td>
							<td>
								{if $ad.user_type==1} 会员 {else $ad.user_type==2} 商户 {/if}
							</td>
							<td>
								{if $ad.type=='pay'} 代理支付 {elseif $ad.type=='join'} 加盟商支付 {elseif $ad.type=='accept'} 保证金 {elseif $ad.type=='take'} 提取保证金 {elseif $ad.type=='order'} 订单收入 {/if}
							</td>
							<td>{$ad.price}</td>

							<td>{$ad.add_time}</td>
						</tr>
						{/volist}
					</tbody>
				</table>
				<div style="text-align: right;">
					{$list->render()}
				</div>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>

{/block}